package com.licq.hongmeng.net;


import com.licq.hongmeng.bean.BaseBean;
import com.licq.hongmeng.bean.JokeBean;
import com.licq.hongmeng.bean.UserInfo;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

import java.util.ArrayList;


/**
 * 接口
 */
public interface MobileApiInterface {
    //注册接口
    @GET(MobileApiUrl.HEALTHCARE_GETNOTICE)
    Call<BaseBean> getnotice(String code, int location);

    //登陆接口
    @POST(MobileApiUrl.HEALTHCARE_LOGIN)
    Call<BaseBean<UserInfo>> login(@Body UserInfo userInfo);

    //新实时段子
    @GET(MobileApiUrl.APIOPEN_GETJOKE)
    Call<BaseBean<ArrayList<JokeBean>>> getJoke(@Query("page") int page, @Query("count") int count, @Query("type") String type);
}
